Network data routing protection cycles for automatic protection switching

ABSTRACT

A computer network processes data packets in the event of a network link failure. The network includes a plurality of routers that deliver data packets to the network via a plurality of links. At least one router includes a protection cycle manager. The protection cycle manager has a protection cycle packet identifier and a protection cycle packet processor. The protection cycle packet identifier identifies, as protection cycle packets, data packets having a specific protection cycle format. The protection cycle packet processor processes protection cycle packets to determine whether the packet destination corresponds to the routing node, and if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link. Otherwise, if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the routing node.

TECHNICAL FIELD

[0001] The present invention relates to computer networks, and more specifically to a computer network that provides automatic protection switching to reroute data packets in the event of a network link failure.

BACKGROUND ART

[0002] In an Internet Protocol (IP) based computer network, data routing protocols such as Open Shortest Path First (OSPF), Intermediate System-Intermediate System (IS-IS), and Routing Information Protocol (RIP) are used to determine the path that data packets travel through the network. When a link between two network routers fails, the routing protocols are used to advertise the failure throughout the network. Most routers can detect a local link failure relatively quickly, but it takes the network as a whole a much longer time to converge. This convergence time is typically on the order of 10-60 seconds depending on the routing protocol and the size of the network. Eventually, all of the involved routers learn of the link failure and compute new routes for data packets to affected destinations. Once all the routers converge on a new set of routes, data packet forwarding proceeds normally. While the network is converging after a link fails, transient loops can occur which consume valuable bandwidth. Loop prevention algorithms have been proposed to eliminate such transient loops. When using these algorithms, routes are pinned until the network has converged and the new routes have been proven to be loop-free. Loop prevention algorithms have the advantage that data packets flowing on unaffected routes are not disrupted while transient loops are eliminated. The main drawback of loop prevention algorithms is that data packets directed out of a failed link get lost, or “black holed,” during the convergence. Loop prevention algorithms also extend the convergence time somewhat while new routes are being verified to be loop-free.

SUMMARY OF THE INVENTION

[0003] A preferred embodiment of the present invention includes an apparatus and method for processing data packets in the event of a link failure of a routing node that delivers data packets to a data network via a plurality of links. A protection cycle manager includes a protection cycle packet identifier and a protection cycle packet processor. The packet identifier identifies, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination. The processor processes each protection cycle packet to determine whether the packet destination corresponds to the routing node, and if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link. Otherwise, if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the routing node.

[0004] A further embodiment may include a protection cycle packeter, that , in response to failure of a link for the routing node,, converts affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format. The protection cycle manager may further advertise a link failure to the network using a routing protocol. The specific protection cycle format may include a label stack based on Multi-Protocol Label Switching (MPLS) which may include labels for the packet source and the packet destination. The protection cycle node may be a next node on a Label Switched Path (LSP), in which case, the LSP may be based on network topology information which may be derived from a network protocol.

[0005] A preferred embodiment also includes a data router that delivers data packets to a data network via a plurality of links, the router processing data packets in the event of a link failure. The router includes a data interface for data packets to enter and exit the router, and a protection cycle manager. The protection cycle manager includes a protection cycle packet identifier and a protection cycle processor. The packet identifier identifies, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination. The processor processes protection cycle packets to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the router, the protection cycle packet is treated by the router as a data packet received from the packet source via the failed link, and, (ii) if the packet destination does not correspond to the routing node, the protection cycle packets are sent to a protection cycle node for the router.

[0006] Another preferred embodiment includes a computer network having a plurality of data packet streams. The network includes a plurality of subnetworks, each subnetwork having at least one application that generates a stream of data packets for transmission over the computer network, and a plurality of routers that deliver data packets to the network via a plurality of links. At least one router processes data packets in the event of a link failure. The at least one router includes a plurality of data interfaces for streams of data packets to enter and exit the at least one router, and a protection cycle manager having a protection cycle packet identifier and a protection cycle processor. The packet identifier identifies, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination. The processor processes protection cycle packets to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the at least one router, the protection cycle packet is treated by the at least one router as a data packet received from the packet source via the failed link, and, (ii) if the packet destination does not correspond to the routing node, the protection cycle packets are sent to a protection cycle node for the at least one router.

[0007] A preferred embodiment includes a computer program product for use on a computer system for processing data packets in the event of a link failure of a routing node that delivers data packets to a data network via a plurality of links. The computer program product comprises a computer-usable medium having computer-readable program code thereon. The computer readable program code includes program code for identifying, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination. There is also program code for processing protection cycle packets to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link, and, (ii) if the packet destination does not correspond to the routing node, the protection cycle packets are sent to a protection cycle node for the routing node.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present invention will be more readily understood by reference to the following detailed description taken with the accompanying drawings, in which:

[0009]FIG. 1 is an illustration of a computer network which uses MPLS p-cycle automatic protection switching according to a preferred embodiment.

[0010]FIG. 2 is an illustration of a network node router which supports p-cycles according to a preferred embodiment.

[0011]FIG. 3 is a flow chart illustration of the logical steps in a method of providing automatic protection switching according to a preferred embodiment.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

[0012] A preferred embodiment of the present invention uses Multi-Protocol Label Switching (MPLS) with explicit routing to establish an MPLS layer protection cycle (p-cycle) that provides automatic protection switching to reroute data packets in the event of a network link failure. An MPLS Label Switched Path (LSP) tunnel passes through the end points of the link that will be protected. The LSP tunnel established in this way forms an MPLS p-cycle through which failed-link packets are directed. A given p-cycle may protect one or multiple links. In a preferred embodiment, a standard multi-layered MPLS label stack is used in the p-cycle. In other embodiments, a p-cycle may be implemented in another protocol other than MPLS.

[0013] The p-cycle may be configured by hand, or automatically established using network link state and topology information derived from a routing protocol, such as Open Shortest Path First (OSPF). Various algorithms may be used to automatically compute the specific structure of a given p-cycle. A preferred embodiment uses a network management application for this purpose since the p-cycle will not follow an optimal path. When a p-cycle is bi-directional, a bandwidth protection mechanism may be implemented so that some of the p-cycle traffic goes one way, and the rest the other way.

[0014] A preferred embodiment uses a diffusion-based loop prevention algorithm as is known in the art to detect when the network has converged so that it is safe to switch to the new routed path. Such diffusion algorithms are discussed, for example, in Garcia-Lunes-Aceves, J. J., “Loop-Free Routing Using Diffusing Computations,” IEEE/ACM Transactions on Networking, vol. 1, no. 1, 1993, pp. 130-141, which is hereby incorporated herein by reference. Using p-cycles with a loop prevention algorithm allows for uninterrupted service in the event of a link failure without black holing of packets on the failed link.

[0015]FIG. 1 is an illustration of a computer network using a preferred embodiment of the present invention for MPLS p-cycle automatic protection switching. In FIG. 1, network nodes A 10 through H 17 are normally linked via the dashed lines to route data packets from node to node. In the network segment shown, the normal network links between A and E, A and F, B and D, B and E, and H and F are also protected by a p-cycle 18. The p-cycle 18 forms a loop through the network so that a packet sent through the p-cycle will eventually come back to its origination node if not taken out of the p-cycle by one of the nodes it passes through. In FIG. 1, LSP p-cycle 18 traverses the network segment from node A 10 to B 11 to C 12 . . . to G 16 to H 17 and back to A 10.

[0016] Only one p-cycle 18 is shown in FIG. 1. In practice, a p-cycle is established for every set of links to be protected. A preferred embodiment can operate successfully in any arbitrary network topology. It should be noted, however, that to realize full link-level protection, for every two neighbors A and B connected by link L in the network, another network path between A and B must exist that does not include L.

[0017] Various options may be employed with respect to network-level encapsulation on the original link. For example, the original network-layer encapsulation (e.g., IP) may be tunneled in the p-cycle LSP. If MPLS is being used on the original link, then the labeled packet may be tunneled on the backup link using MPLS label stacking. Multiple independent link failures may be tolerated using multiple layers of tunneling.

[0018] The router for each node monitors its own local links. When a link failure is detected, the router for an affected node quickly routes the data packet traffic over to the p-cycle 18. Then, the network routing protocol advertises the link failure so that the network can be re-routed without the failed link, and a loop-prevention mechanism determines that the re-routed network is loop-free. Packet traffic may then be switched to the re-routed network and new p-cycles recalculated as necessary.

[0019]FIG. 2 is an illustration of a network node router which supports p-cycles according to a preferred embodiment. Network node router 20 is a part of a computer network 22 of routers in mutual communication via a plurality of network node data links 21. Router 20 also serves to connect one or more local area networks (LANs) 23 having one or more workstations 231. Data packets enter and exit the router 20 as controlled by a data interface driver 24 which is connected to the network node links 21.

[0020]FIG. 3 is a flow chart illustration of the logical steps in a corresponding method of providing automatic protection switching according to a preferred embodiment. A protection cycle manager 25 includes a p-cycle packet identifier 251 that, in step 301, identifies as p-cycle packets, data packets that have a p-cycle label stack, which, in a preferred embodiment, is a standard MPLS label stack. In such an embodiment, the top label in the stack indicates the next node in the p-cycle. The next label on the stack is the identity of the destination node that ultimately receives the packet, the third label in the stack is the identity of the node creating the label stack. Identified p-cycle packets are processed by p-cycle packet processor 252 which, in step 302, pops the topmost label off the label stack and checks the next label to see if the router node's own identity is in the destination node position in the label stack. If not, the label for the next p-cycle node is pushed onto the stack and the packet is sent by the data interface driver 24 via the node link 21 to the next node on the p-cycle, step 303. If, in step 302, the router node's own identity is carried in the destination node position in the label stack, the source node label in the label stack is checked to determine which network link the packet normally would have used, step 304. The p-cycle label stack is then deleted, step 305, and thereafter, the packet is treated as if it had been received via the normal network link 21 from the source node, step 306.

[0021] In a preferred embodiment, the network node router also includes a network link monitor 26 in communication with the data interface driver 24. When the link monitor 26 detects a failed link, step 307, protection cycle packeter 253 attaches to affected data packets a p-cycle label stack having appropriate labels for source node, destination node, and p-cycle node, step 308, and the p-cycle packets are then sent to the p-cycle node for that router, step 303. A link failure also is advertised to the network using the routing protocol, step 309. A new network route is then established to replace the failed link, step 310, and a loop prevention algorithm is used to determine that the new network routes have converged and are loop-free, step 311.

[0022] Preferred embodiments of the invention, or portions thereof (e.g., the p-cycle packet processor 252, p-cycle packet identifier 251, link monitor 26, etc.), may be implemented in any conventional computer programming language. For example, preferred embodiments may be implemented in a procedural programming language (e.g., “C”) or an object oriented programming language (e.g., “C++” or “JAVA”). Alternative embodiments of the invention may be implemented as preprogrammed hardware elements (e.g., application specific integrated circuits), or other related components.

[0023] Alternative embodiments of the invention may be implemented as a computer program product for use with a computer system. Such implementation may include a series of computer instructions fixed either on a tangible medium, such as a computer readable media (e.g., a diskette, CD-ROM, ROM, or fixed disk), or transmittable to a computer system via a modem or other interface device, such as a communications adapter connected to a network over a medium. The medium may be either a tangible medium (e.g., optical or analog communications lines) or a medium implemented with wireless techniques (e.g., microwave, infrared or other transmission techniques). The series of computer instructions preferably embodies all or part of the functionality previously described herein with respect to the system. Those skilled in the art should appreciate that such computer instructions can be written in a number of programming languages for use with many computer architectures or operating systems. Furthermore, such instructions may be stored in any memory device, such as semiconductor, magnetic, optical or other memory devices, and may be transmitted using any communications technology, such as optical, infrared, microwave, or other transmission technologies. It is expected that such a computer program product may be distributed as a removable medium with accompanying printed or electronic documentation (e.g., shrink wrapped software), preloaded with a computer system (e.g., on system ROM or fixed disk), or distributed from a server or electronic bulletin board over the network (e.g., the Internet or World Wide Web).

[0024] Although various exemplary embodiments of the invention have been disclosed, it should be apparent to those skilled in the art that various changes and modifications can be made that will achieve some of the advantages of the invention without departing from the true scope of the invention. These and other obvious modifications are intended to be covered by the appended claims. 

What is claimed is:
 1. A protection cycle manager that processes data packets in the event of a link failure of a routing node that delivers data packets to a computer network via a plurality of links, the protection cycle manager comprising: a protection cycle packet identifier that identifies, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination; and a protection cycle packet processor that processes each protection cycle packet to determine whether the packet destination corresponds to the routing node, and: i. if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link; and if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the routing node.
 2. A protection cycle manager according to claim 1, further comprising: a protection cycle packeter, that converts, in response to failure of a link for the routing node, affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format.
 3. A protection cycle manager according to claim 1, wherein the protection cycle manager further advertises a link failure to the network using a routing protocol.
 4. A protection cycle manager according to claim 1, wherein the specific protection cycle format includes a label stack based on Multi-Protocol Label Switching (MPLS).
 5. A protection cycle manager according to claim 4, wherein the label stack includes labels for the packet source and the packet destination.
 6. A protection cycle manager according to claim 1, wherein the protection cycle node is a next node on a Label Switched Path (LSP).
 7. A protection cycle manager according to claim 6, wherein the LSP is based on network topology information.
 8. A protection cycle manager according to claim 7, wherein the network topology information is derived from a network protocol.
 9. A method of processing data packets in the event of a link failure of a routing node that delivers data packets to a data network via a plurality of links, the method comprising: identifying, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination; and processing each protection cycle packet to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link; and (ii) if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the routing node.
 10. A method according to claim 9, further comprising: converting, in response failure of a link for the routing node, affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format.
 11. A method according to claim 9, further comprising advertising a link failure to the network using a routing protocol.
 12. A method according to claim 9, further comprising establishing a new network route to replace a failed link.
 13. A method according to claim 9 further comprising using a loop prevention algorithm after a link failure for determining that the network has converged and is loop-free.
 14. A method according to claim 9, wherein the specific protection cycle format includes a label stack based on Multi-Protocol Label Switching (MPLS).
 15. A method according to claim 14, wherein the label stack includes labels for the packet source and the packet destination.
 16. A method according to claim 9, wherein the protection cycle node is a next node on a Label Switched Path (LSP).
 17. A method according to claim 16, wherein the LSP is based on network topology information.
 18. A method according to claim 17, wherein the network topology information is derived from a network protocol.
 19. A data router that delivers data packets to a computer network via a plurality of links, the router processing data packets in the event of a link failure, the router comprising: a data interface for data packets to enter and exit the router; and a protection cycle manager including: a protection cycle packet identifier that identifies, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination; and a protection cycle packet processor that processes each protection cycle packet to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the router, the protection cycle packet is treated by the router as a data packet received from the packet source via the failed link, and, (ii) if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the router.
 20. A data router according to claim 19, further comprising: a protection cycle packeter, that, in response to failure of a link for the routing node, converts affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format.
 21. A data router according to claim 19, wherein the router further advertises a link failure to the network using a routing protocol.
 22. A data router according to claim 19, wherein the specific protection cycle format includes a label stack based on Multi-Protocol Label Switching (MPLS).
 23. A data router according to claim 22, wherein the label stack includes labels for the packet source and the packet destination.
 24. A data router according to claim 19, wherein the protection cycle node is a next node on a Label Switched Path (LSP).
 25. A data router according to claim 24, wherein the LSP is based on network topology information.
 26. A data router according to claim 25, wherein the network topology information is derived from a network protocol.
 27. A computer network having a plurality of data packet streams, the network comprising: a plurality of subnetworks, each subnetwork having at least one application that generates a stream of data packets for transmission over the computer network; and a plurality of routers that deliver data packets to the network via a plurality of links, at least one router processing data packets in the event of a link failure, the at least one router including: a plurality of data interfaces for streams of data packets to enter and exit the at least one router; and a protection cycle manager having: a protection cycle packet identifier that identifies, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination; and a protection cycle packet processor that processes each protection cycle packet to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the at least one router, the protection cycle packet is treated by the at least one router as a data packet received from the packet source via the failed link, and, (ii) if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the at least one router.
 28. A computer network according to claim 27, wherein the at least one router further comprises: a protection cycle packeter, that, in response to failure of a link for the routing node, converts affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format.
 29. A computer network according to claim 27, wherein the at least one router further advertises a link failure to the network using a routing protocol.
 30. A computer network according to claim 27, further comprising a failed link recalculator that establishes a new network route to replace a failed link.
 31. A computer network according to claim 30, wherein the failed link recalculator uses a loop prevention algorithm after a link failure for determining that the network has converged and is loop-free.
 32. A computer network according to claim 27, wherein the specific protection cycle format includes a label stack based on Multi-Protocol Label Switching (MPLS).
 33. A computer network according to claim 32, wherein the label stack includes labels for the packet source and the packet destination.
 34. A computer network according to claim 27, wherein the protection cycle node is a next node on a Label Switched Path (LSP).
 35. A computer network according to claim 34, wherein the LSP is based on network topology information.
 36. A computer network according to claim 35, wherein the network topology information is derived from a network protocol.
 37. A computer program product for use on a computer system for processing data packets in the event of a link failure of a routing node that delivers data packets to a computer network via a plurality of links, the computer program product comprising a computer-usable medium having computer-readable program code thereon, the computer readable program code including: program code for identifying, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination; and program code for processing each protection cycle packet to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link, and, (ii) if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the routing node.
 38. A computer program product according to claim 37, further comprising: program code for converting, in response to failure of a link for the routing node, affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format.
 39. A computer program product according to claim 37, further comprising program code for advertising a link failure to the network using a routing protocol.
 40. A computer program product according to claim 37, further comprising program code for using a loop prevention algorithm after a link failure for determining that the network has converged and is loop-free.
 41. A computer program product according to claim 37, further comprising program code for establishing a new network route to replace a failed link.
 42. A computer program product according to claim 37, wherein the specific protection cycle format includes a label stack based on Multi-Protocol Label Switching (MPLS).
 43. A computer program product according to claim 48, wherein the label stack includes labels for the packet source and the packet destination.
 44. A computer program product according to claim 37, wherein the protection cycle node is a next node on a Label Switched Path (LSP).
 45. A computer program product according to claim 44, wherein the LSP is based upon network topology information.
 46. A computer program product according to claim 45, wherein the network topology information is derived from a network protocol.
 47. A protection cycle manager that processes data packets in the event of a link failure of a routing node that delivers data packets to a computer network via a plurality of links, the protection cycle manager comprising: means for identifying, as protection cycle packets, data packets having a specific protection cycle format that includes a packet source and a packet destination; and means for processing each protection cycle packet to determine whether the packet destination corresponds to the routing node, and: (i) if the packet destination corresponds to the routing node, the protection cycle packet is treated by the routing node as a data packet received from the packet source via the failed link; and (ii) if the packet destination does not correspond to the routing node, the protection cycle packet is sent to a protection cycle node for the routing node.
 48. A protection cycle manager according to claim 47, further comprising: means for converting, in response failure of a link for the routing node, affected data packets routed over the failed link into protection cycle packets in the specific protection cycle format.
 49. A protection cycle manager according to claim 47, further comprising: means for advertising a link failure to the network using a routing protocol.
 50. A protection cycle manager according to claim 47, further comprising: means for establishing a new network route to replace a failed link.
 51. A protection cycle manager according to claim 47, further comprising: means for using a loop prevention algorithm after a link failure for determining that the network has converged and is loop-free.
 52. A protection cycle manager according to claim 47, wherein the specific protection cycle format includes a label stack based on Multi-Protocol Label Switching (MPLS).
 53. A protection cycle manager according to claim 52, wherein the label stack includes labels for the packet source and the packet destination.
 54. A protection cycle manager according to claim 47, wherein the protection cycle node is a next node on a Label Switched Path (LSP).
 55. A protection cycle manager according to claim 54, wherein the LSP is based on network topology information.
 56. A protection cycle manager according to claim 55, wherein the network topology information is derived from a network protocol. 